package user.controller;

import core.controller.BaseController;
import core.domain.ListDataInfo;
import core.domain.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import user.service.IUserMessageService;

@RestController
@RequestMapping("/user/message")
public class UserMessageController extends BaseController {

    @Autowired
    private IUserMessageService userMessageService;
    @GetMapping("/list")
    public ListDataInfo list(PageQuery dto){
        return userMessageService.list(dto);
    }
}
